#ifndef ZD60_CONTROL_H
#define ZD60_CONTROL_H

#include <QWidget>

#define ZJB1_flag   0x01
#define ZJB2_flag   0x02

#define YJB1_flag   0x03
#define YJB2_flag   0x04

#define ZFYC1_flag   0x05
#define ZFYC2_flag   0x06

#define YFYC1_flag   0x07
#define YFYC2_flag   0x08

#define ZFYX1_flag   0x09
#define ZFYX2_flag   0x0A

#define YFYX1_flag   0x0B
#define YFYX2_flag   0x0C

#define Battery_flag 0x0D

#define Pod_flag 0x10
#define CT_flag 0x11
#define FDJ_flag 0x12


namespace Ui {
class ZD60_Control;
}

class ZD60_Control : public QWidget
{
    Q_OBJECT

public:
    explicit ZD60_Control(QWidget *parent = nullptr);
    ~ZD60_Control();
    void send_command_packet(uint8_t cmd);
    void send_statue_command(uint8_t cmd);
    void show_ZD60_Motor_statue(uint8_t Motor_type,uint8_t statue);
    bool ZJB1_ShowLEDStatus = true;
    bool ZJB2_ShowLEDStatus = true;
    bool YJB1_ShowLEDStatus = true;
    bool YJB2_ShowLEDStatus = true;
    bool ZFYC1_ShowLEDStatus = true;
    bool ZFYC2_ShowLEDStatus = true;
    bool YFYC1_ShowLEDStatus = true;
    bool YFYC2_ShowLEDStatus = true;
    bool ZFYX1_ShowLEDStatus = true;
    bool ZFYX2_ShowLEDStatus = true;
    bool YFYX1_ShowLEDStatus = true;
    bool YFYX2_ShowLEDStatus = true;
    bool PowerStatus = false;

private slots:
    void on_ZJB1_clicked();
    void on_ZJB2_clicked();
    void on_YJB1_clicked();
    void on_YJB2_clicked();
    void on_ZFYC1_clicked();
    void on_ZFYC2_clicked();
    void on_YFYC1_clicked();
    void on_YFYC2_clicked();
    void on_ZFYX1_clicked();
    void on_ZFYX2_clicked();
    void on_YFYX1_clicked();
    void on_YFYX2_clicked();
    void on_ALL_IN_clicked();
    void on_ALL_OUT_clicked();
    void on_ALL_STOP_clicked();
    void on_PodButton_clicked();
    void on_CTButton_clicked();
    void on_FDJButton_clicked();
    void on_Read_statue_clicked();


private:
    Ui::ZD60_Control *ui;
};



extern ZD60_Control *zd60control;



#endif // ZD60_CONTROL_H
